<?php
namespace Home\Model;
use Think\Model\RelationModel;
class GoodsNAttributeModel extends RelationModel{
	
	protected $_link = array(        
			'Attri'=>array(            
			'mapping_type'      => self::BELONGS_TO,            
			'class_name'        => 'Attribute', 
			'foreign_key'       => 'attid', 
			'mapping_fields'    => 'name,type', 
			'as_fields'         => 'name,type'
			 ),        
	);

}